import { createApp } from "vue";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import "./style.css";
import "vue-global-api";
import App from "./App.vue";
import router from "./router/index";
import "./mock/";
import { createPinia } from "pinia";
import "nprogress/nprogress.css";
import "./permission";
import "virtual:windi.css";
import "@/styles/index.scss";
// 本地SVG图标
import "virtual:svg-icons-register";

import * as ElementPlusIconsVue from "@element-plus/icons-vue";
const app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app.use(router).use(createPinia()).use(ElementPlus).mount("#app");
